<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>Demo-请求远程数据</title>
</head>

<body config='{"Timestamp":"11"}' id="doc_cps">
<div id="cps_demo">
	<ul>
    	<li>连　接：<span dom="cps-type"></span></li>
    	<li>状　态：<span dom="states"></span></li>
    	<li>倒计时：<span dom="countdown"></span></li>
    </ul>
    <div dom="result"></div>
    <br/>
    <a dom="cps" href="#">转CPS</a> | <a dom="ajax" href="#">转Ajax</a> | <a dom="abort" href="#">断开</a> | <a dom="running" href="#">连接</a> | <a dom="press" href="#">催促</a>
</div>

<div style="border:#CCC 1px solid; background-color:#FFFFCC;padding:20px;">
	该Demo用要用来展示Widget: Cps，Cps长连接<br/>
	演示配制为：初始化时用Ajax轮循连接 -> cps测试成功 ->转cps连接 -> 20秒后cps断开 -> 转ajax连接 ->...如此循环<br/>
	该Demo需要后端php环境下运行，暂只模似firefox下请求.
</div>

</body>
<script type="text/javascript" src="mdf/js/common/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="mdf/js/common/mdf-min.js"></script>
<script type="text/javascript" src="mdf/js/common/jquery.comet.js"></script>
<script type="text/javascript" src="mdf/js/project/project-init.js"></script>
<script type="text/javascript" src="mdf/js/project/language-mapping.js"></script>
<script type="text/javascript" src="mdf/js/project/error-mapping.js"></script>
<script type="text/javascript" src="mdf/js/project/action-mapping.js"></script>
<script type="text/javascript" src="mdf/js/project/cps-demo.js"></script>

</html>
